// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  modules: [
    '@nuxt/ui',
    '@nuxt/image'
  ],

  runtimeConfig: {
    public: {
      apiBase: process.env.NUXT_PUBLIC_API_BASE,
      buildEnv: process.env.NUXT_PUBLIC_BUILD_ENV || 'development'
    }
  },

  ui: {
    global: true,
    icons: ['heroicons'],
    primary: '#6893AC',
    notifications: {
      // 通知配置
      position: 'top-center'
    },
    toaster: {
      // 全局toaster配置
      position: 'top-center'
    }
  },

  primary: 'primary',
  gray: 'cool',

  colorMode: {
    preference: 'light'
  },

  compatibilityDate: '2025-03-28'
})